package com.youle.robots.user.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.youle.robots.common.model.UserBasiceInfo;
import com.youle.robots.common.service.UserService;
import com.youle.robots.user.dao.UserBasiceInfoMapper;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 * User: kedong
 * Date: 18-3-19
 * Time: 下午3:44
 * To change this template use File | Settings | File and Code Templates ->Includes->File Header.
 */
@Service(interfaceClass = UserService.class)
@Component
public class UserServiceImpl implements UserService {

    private final UserBasiceInfoMapper userBasiceInfoMapper;

    public UserServiceImpl(UserBasiceInfoMapper userBasiceInfoMapper) {
        this.userBasiceInfoMapper = userBasiceInfoMapper;
    }

    @Override
    public UserBasiceInfo findByName(Integer id) {
        return userBasiceInfoMapper.selectByPrimaryKey(id);
    }
}
